﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Autodesk.Revit.UI;
using ModelCheckUtility.ModelLayer;

namespace FrontRoomCheck.ShowDataForm.FrontRoomAreaCheck
{
	public class AreaCheckViewLayerManger
	{
		public void DoViewLayer(ExternalCommandData inputCommand, IWin32Window inputHandle, UIDocument inputUidoc, List<ICloseCurveAnalays> inputValues)
		{
			this.m_useForm = new FrontRoomCheckForm(inputHandle, inputValues, inputCommand);
			this.m_useManger = new AreaCheckModellessManger(this.m_useForm);
			this.DoLoop();
		}

		private void DoLoop()
		{
			this.m_useManger.DoLoopWork();
		}

		private FrontRoomCheckForm m_useForm;

		private AreaCheckModellessManger m_useManger;
	}
}
